import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class FileUpload {
  /**
   * 查询列表
   */
  static list(data = {}) {
    return request.get(`${URL.system}/sys-file/list`, data)
  }
  /**
   * 删除
   */
  static remove(id) {
    return request.delete(`${URL.system}/sys-file/${id}`)
  }
  /**
   * 新增
   */
  static add(data = {}) {
    return request.post(`${URL.system}/sys-file/uploadWithAttr`, data, {
      headers: {
        "Content-Type": "multipart/form-data",
      }
    })
  }
}